// 标签下的人员
import { request, API_URL } from './request'

// 条件查询人员列表-自动
export const queryPerson = (deta) => {
  return request.post(`${API_URL}/hrplat/talentpool/rest/label/queryPerson`, deta)
}

// 查询员工(根据name code ) 模糊查询
export const queryEmp = (deta) => {
  return request.post(`${API_URL}/hrplat/talentpool/rest/label/queryEmp`, deta)
}

// 删除标签人员
export const deletePerson = (id) => {
  return request.get(`${API_URL}/hrplat/talentpool/rest/label/deletePerson?id=${id}`)
}

// 查询机构树(获取部门)
export const getOrgTree = () => {
  return request.get(`${API_URL}/hrplat/talentpool/rest/label/getOrgTree`)
}

// 序列下拉、职级下拉
export const sequencePullDown = () => {
  return request.get(`${API_URL}/hrplat/talentpool/rest/label/sequencePullDown`)
}

// 导出列表
export const exportList = (data) => {
  return request.post(`${API_URL}/hrplat/talentpool/rest/label/export`, data)
}

// 导入列表
export const importExcelList = (data) => {
  return request.post(`${API_URL}/hrplat/talentpool/rest/label/import`, data)
}

// 新增标签人员
export const addPerson = (data) => {
  return request.post(`${API_URL}/hrplat/talentpool/rest/label/addPerson`, data)
}
